package com.test.kotlin03

fun withTest(){

//    val result:Boolean = "The people's Republic of China.".run (::isLong)
//    println(result)

    val result:Boolean = "The people's Republic of China.".run {
        length >=10
    }
    println(result)

    val result2:Boolean = with("The people's Republic of China."){
        length>=10
    }
    println(result2)


}

fun main() {
    withTest()
}